/**
 * @name: api封装
 * @date: 2020.3.4
 */
import Vue from 'vue'

var domain = '';
if(process.env.NODE_ENV === 'development') {
    // domain = '://192.168.254.1:9666';
    // domain = '://192.168.1.4:8081';
    // domain = 's://demo.uicsoft.com';
	domain = '://60.173.195.243:9998'; 
	// domain = 's://app.etubang.com';   
} else {
    domain = 's://app.etubang.com';
}

const base = 'http' + domain + '/etubang/api/';  

const api = {
	accountUrl: base + 'account/',  //账号管理(运营商)
	clientUrl: base + 'client/',  //客户
	recordUrl: base + 'record/',  //加注/蓄注
	exchargeUrl: base + 'excharge/',  //充值
	integralUrl: base + 'integral/',  //积分
	couponUrl: base + 'coupon/',  //优惠券，现金券
	siteUrl: base + 'site/',  //加注机/加注站
	userUrl: base + 'user/',  //用户
	amapUrl: 'https://restapi.amap.com/v3/geocode/regeo'  //高德地图url
}

Vue.prototype.$api = api;
